package com.cloud.nacos.dubbo.demo.controller;

import com.cloud.nacos.dubbo.demo.entity.LoginUser;
import com.cloud.nacos.dubbo.demo.service.UserService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author codor
 * @date 2023/08/14 11:45
 */
@RestController
public class UserController {

    @DubboReference
    UserService userService;

    @RequestMapping
    public LoginUser access() {
        return userService.access();
    }
}
